package org.github.rayson517.easyplatform.message.controller;

import org.github.rayson517.easyplatform.message.constant.SystemConstant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.corundumstudio.socketio.SocketIOServer;

@RestController
public class NameSpaceController {
	
	@Autowired
	SocketIOServer server;
	
	@RequestMapping("/create")
	public void createNameSpace(){
		server.addNamespace("/"+SystemConstant.SOCKETIO_APPID);
	}
}
